package com.zs.usc.configuration.userlogin;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author Zero
 * @description 登录配置
 * @date 2021/11/12 15:22
 */
@Configuration
@ConfigurationProperties(prefix = "sys-config")
@Data
public class LoginConfig {

    // 登录错误次数
    private int errorCount = 5;

    // 登录锁定时间--->可以优化为redis
    private int lockedTime = 30;
}
